using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class PickBottleRequest : GeneratedMessageLite<PickBottleRequest, PickBottleRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<PickBottleRequest, PickBottleRequest.Builder>
		{
			private bool resultIsReadOnly;
			private PickBottleRequest result;
			protected override PickBottleRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override PickBottleRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override PickBottleRequest DefaultInstanceForType
			{
				get
				{
					return PickBottleRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public Builder()
			{
				this.result = PickBottleRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(PickBottleRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private PickBottleRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					PickBottleRequest other = this.result;
					this.result = new PickBottleRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override PickBottleRequest.Builder Clear()
			{
				this.result = PickBottleRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override PickBottleRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new PickBottleRequest.Builder(this.result);
				}
				return new PickBottleRequest.Builder().MergeFrom(this.result);
			}
			public override PickBottleRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override PickBottleRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is PickBottleRequest)
				{
					return this.MergeFrom((PickBottleRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override PickBottleRequest.Builder MergeFrom(PickBottleRequest other)
			{
				return this;
			}
			public override PickBottleRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override PickBottleRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(PickBottleRequest._pickBottleRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = PickBottleRequest._pickBottleRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 10u)
					{
						if (WireFormat.IsEndGroupTag(num))
						{
							return this;
						}
						this.ParseUnknownField(input, extensionRegistry, num, text);
					}
					else
					{
						BaseRequest.Builder builder = BaseRequest.CreateBuilder();
						if (this.result.hasBaseRequest)
						{
							builder.MergeFrom(this.BaseRequest);
						}
						input.ReadMessage(builder, extensionRegistry);
						this.BaseRequest = builder.BuildPartial();
					}
				}
				return this;
			}
			public PickBottleRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public PickBottleRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public PickBottleRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public PickBottleRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		private static readonly PickBottleRequest defaultInstance;
		private static readonly string[] _pickBottleRequestFieldNames;
		private static readonly uint[] _pickBottleRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private int memoizedSerializedSize = -1;
		public static PickBottleRequest DefaultInstance
		{
			get
			{
				return PickBottleRequest.defaultInstance;
			}
		}
		public override PickBottleRequest DefaultInstanceForType
		{
			get
			{
				return PickBottleRequest.DefaultInstance;
			}
		}
		protected override PickBottleRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private PickBottleRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] pickBottleRequestFieldNames = PickBottleRequest._pickBottleRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, pickBottleRequestFieldNames[0], this.BaseRequest);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			PickBottleRequest pickBottleRequest = value as PickBottleRequest;
			return pickBottleRequest != null && (this.hasBaseRequest == pickBottleRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(pickBottleRequest.baseRequest_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<PickBottleRequest, PickBottleRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
		}
		public static PickBottleRequest ParseFrom(byte[] data)
		{
			return PickBottleRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private PickBottleRequest MakeReadOnly()
		{
			return this;
		}
		public static PickBottleRequest.Builder CreateBuilder()
		{
			return new PickBottleRequest.Builder();
		}
		public override PickBottleRequest.Builder ToBuilder()
		{
			return PickBottleRequest.CreateBuilder(this);
		}
		public override PickBottleRequest.Builder CreateBuilderForType()
		{
			return new PickBottleRequest.Builder();
		}
		public static PickBottleRequest.Builder CreateBuilder(PickBottleRequest prototype)
		{
			return new PickBottleRequest.Builder(prototype);
		}
		static PickBottleRequest()
		{
			PickBottleRequest.defaultInstance = new PickBottleRequest().MakeReadOnly();
			PickBottleRequest._pickBottleRequestFieldNames = new string[]
			{
				"BaseRequest"
			};
			PickBottleRequest._pickBottleRequestFieldTags = new uint[]
			{
				10u
			};
			object.ReferenceEquals(micromsg.Proto.PickBottleRequest.Descriptor, null);
		}
	}
}
